package mall

import (
	"github.com/gin-gonic/gin"
	v1 "main.go/api/v1"
	"main.go/middleware"
)

type OrderRouter struct{}

func (r *OrderRouter) InitOrderRouter(Router *gin.RouterGroup) {
	privateAdminGroup := Router.Group("admin/order").Use(middleware.Auth("admin"))
	api := v1.ApiGroupApp.MallApiGroup.OrderApi
	{
		// privateAdminGroup.POST("create", api.Create) // 增
		// privateAdminGroup.POST("delete", api.Delete) // 删
		// privateAdminGroup.POST("update", api.Update) // 改
		privateAdminGroup.POST("list", api.List) // 查
	}
}
